import { ErrorName } from '@/error/ErrorName.ts'

export class ApiError extends Error {
  code: number //接口code码

  constructor(code: number, message: string) {
    super(message)
    this.name = ErrorName.ApiError
    this.code = code
  }
}
